#import <CoreFoundation/CoreFoundation.h>
#import <Foundation/Foundation.h>
#import <sqlite3.h>

@interface DbObject : NSObject {
	sqlite3 *db_obj;
	sqlite3_stmt *statement;

	NSString *database_name;
	NSString *database_path;
	NSString *databasePathFromApp;
}

- (id) init;
- (void) dealloc;

- (void) createDatabaseIfNeeded;

- (NSMutableArray *) getItems;
- (void) insertItem : (NSString *) barcode;
- (void) deleteItem : (NSString *) barcode;

@end
